{% extends '/layout.html'%}

{% block title %}
    欢迎注册 | 小白鼠
{% endblock %}

{% block body %}
<h1>欢迎注册小白鼠</h1>

<div>
    <form action="{{ url_for('users.register')}}" method="post">
        {{ form.hidden_tag() }}

        <div><span>{{ form.username.label }}:&nbsp;</span>{{ form.username }}</div>
        {{  macros.show_errors(form.username.errors) }}

        <div><span>{{ form.password.label }}:&nbsp;</span>{{ form.password }}</div>
        {{  macros.show_errors(form.password.errors) }}

        <div><span>{{ form.fullname.label }}:&nbsp;</span>{{ form.fullname }}</div>
        {{  macros.show_errors(form.fullname.errors) }}

        <div>{{ form.submit }}</div>

    </form>
</div>
{% endblock %}